#include "menu.h"
#include "control.h"
#include <stdio.h>

struct menustr iostats[] PROGMEM = 
{
	{NULL, 0, 1, 7, setio, NULL},
	{NULL, 1, 2, 0, setio, NULL},
	{NULL, 2, 3, 1, setio, NULL},
	{NULL, 3, 4, 2, setio, NULL},
	{NULL, 4, 5, 3, setio, NULL},
	{NULL, 5, 6, 4, setio, NULL},
	{NULL, 6, 7, 5, setio, NULL},
	{NULL, 7, 0, 6, setio, NULL},
};

const char ondelstr[] PROGMEM = "ON-Duration:  ";
const char offdelstr[] PROGMEM = "OFF-Duration: ";
const char minutesstr[] PROGMEM = "Minutes: ";
const char houersstr[] PROGMEM = "Hours: ";


struct menustr config[] PROGMEM =
{
	{NULL, 0, 1, 7, setconfig, NULL},
	{NULL, 1, 2, 0, setconfig, NULL},
	{NULL, 2, 3, 1, setconfig, NULL},
	{NULL, 3, 4, 2, setconfig, NULL},
	{NULL, 4, 5, 3, setconfig, NULL},
	{NULL, 5, 6, 4, setconfig, NULL},
	{NULL, 6, 7, 5, setconfig, NULL},
	{NULL, 7, 0, 6, setconfig, NULL},
};

menu mymenu[] PROGMEM = 
{
	{NULL,0,1,1, NULL, (menu*) config}, 
	{NULL,1,0,0, NULL, (menu*) iostats},
};

uint8_t sublength[] = {8, 8, 0};


